package cn.miao;

import cn.miao.exception.GlobalExceptionHandler;
import com.netflix.discovery.shared.Application;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Import;

/**
 * @program: springcloud-hrm
 * @description:
 * @author: MiaoWei
 * @create: 2021-11-29 19:07
 **/
@SpringBootApplication
@EnableEurekaClient
@Import({GlobalExceptionHandler.class})//导入该类 因为会默认会去扫描该主启动类下的包,因为该类位于其他微服务这是导入进来的,以免包不一致!
public class MessageApplication {
    public static void main(String[] args) {
        SpringApplication.run(MessageApplication.class);
    }
}
